import VueRouter from 'vue-router'
import Home from "./pages/Home.vue"
import About from "./pages/About.vue"
import News from "./pages/News.vue"

// 路由
const routes = [
  {
    path: '/',
    // component: ()=> import("./pages/Home.vue")
    component: Home
  },
  {
    path: "/about",
    // component: ()=> import("./pages/About.vue")
    component: About
  },
  {
    path: "/news",
    // component: ()=> import("./pages/News.vue")
    component: News
  }
]

const router = new VueRouter({
  routes
})

export default router
